home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re FW_CSharedLibraryResourceFi < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.3 KB  |  [TEXT/ttxt]

  1. Subject:     Re: FW_CSharedLibraryResourceFile
  2. Sent:        6/3/96 7:03 AM
  3. Received:    6/3/96 7:58 AM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >If I allocate a FW_CSharedLibraryResourceFile with the constructor that
  9. >just passes the Environment* parameter, is that guaranteed to open access
  10. >to the part editor's shared library?
  11. >
  12. >That piece of info was missing from ODF Assistant in QuickView.
  13. >
  14. >I need to know this because I'm writing a general utility routine for
  15. >"CustomGetFolder", and I need acces to my part editor's resource fork,
  16. >hopefully without passing an FW_Instance parameter all over the place.
  17. >
  18. >Thanks,
  19. >
  20. >Brad
  21.  
  22. Yes it will give you access to your part resource fork. If you look at 
  23. the code for the constructor of FW_CSharedLibraryResourceFile you'll see 
  24. that it uses FW_gInstance. Because this code is statically linked to your 
  25. part, FW_gInstance is your part instance.
  26.  
  27. ......................................................................
  28.  Henri Lamiraux                                      lamiraux@apple.com
  29.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  30. ......................................................................
  31.  
  32.